{% extends "modal_base.html" %}

{% block modal_header %}<strong>Добавить запись</strong>{% endblock %}

{% block modal_body %}
        <form action="{{ upload_url }}" id="post_add" class="ajax" role="form" method="post" enctype="multipart/form-data">
        <div class="form-group">
	        <label for="title">Заголовок:</label>
	        <input id="title" class="form-control" type="text" name="title">
        </div>
		<div class="form-group">
	        <label for="tags">Ключевые слова</label>
	       	<input id="tags" class="form-control" type="text" name="tags">
        </div>
		<div class="form-group">
	        <label for="content">Содержание:</label>
	       	<textarea id="content" class="form-control" form="post_add" name="text"></textarea>
		</div>
        <div class="form-image">
            <label for="img">Картинка:</label>
            <input id="img" class="form-control" type="file" name="file">
        </div>
        </form>
{% endblock %}

{% block modal_footer %}
	<button class="btn btn-primary" type="submit" form="post_add">Сохранить</button>
{% endblock %}